package main;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import factory.FactoryItf;

public class Client {
	public static void main(String args[]) {
		try {
			Registry registry = LocateRegistry.getRegistry();
			FactoryItf factory  = (FactoryItf) registry.lookup("LaFactory");		

			factory.creerJob(1).faireJob();
			factory.creerJob(2).faireJob();
			factory.creerJob(3).faireJob();
			
		} catch (Exception e) {
			System.out.println("Client exception: " +e);
		}
	}
}
